package cn.tedu.straw.portal.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PostAnswerDTO implements Serializable {
    @NotNull(message = "发表答案失败，缺少必要参数！")
    private Integer questionId;

    @NotNull(message = "发表答案失败，缺少必要参数！")
    @NotBlank(message = "发表答案失败，正文不允许未空！")
    private String content;
}
